<?php

namespace app\index\controller;


use app\common\controller\BaseController;


class Controller extends BaseController
{

    // 分页-页码
    protected int $pageNo;

    // 分页-数量
    protected int $pageSize;

    // 分页
    protected array $page;

    public function initialize()
    {
        $this->pageNo = request()->get('page/d', config('default.page.page'));
        $this->pageSize = request()->get('size/d', config('default.page.size'));
        $this->page = [
            'page' => $this->pageNo,
            'size' => $this->pageSize,
        ];
    }


}